package com.tqw.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tqw.entity.BasePojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: czm
 * @Date: 2022/04/17/20:51
 * @Description:订单实体类
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods_order")
public class Order extends BasePojo {
    private static final long serialVersionUID = 848781296727030863L;

    /**
     * 订单id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    private String orderId;
    /**
     * 商品id
     */
    private Integer itemId;
    /**
     * 用户id
     */
    private Integer clientId;
    /**
     * 收货地址id
     */
    private Integer receivingId;
    /**
     * 订单价格
     */
    private BigDecimal price;
    /**
     * 订单状态
     */
    private String status;
    /**
     * 订单支付方式
     */
    private String payType;
    /**
     * 订单支付时间
     */
    private Date paidTime;
}
